package com.jinhongone.pattern.structure.decorator;

/*
* 配料类：抽象装饰者角色
*   实现方式：继承或实现抽象构件，并聚合抽象构件
* */
public abstract class Garnish extends FirstFood{

    private FirstFood firstFood;

    public FirstFood getFirstFood() {
        return firstFood;
    }

    public void setFirstFood(FirstFood firstFood) {
        this.firstFood = firstFood;
    }
    //通过构造函数给父类属性赋值
    public Garnish(FirstFood firstFood,float price,String desc ){
        super(price,desc);
        this.firstFood = firstFood;
    }
}
